/**
 * Copyright (c) 2017—2018 Hodorware.Co.Ltd. All rights reserved.
 * Created by leipeng on 2017/7/6.
 */

'use strict';

module.exports = app => {
    const { STRING, BIGINT, BOOLEAN, DATE } = app.Sequelize;

    const
      User = app.model.define('User', {
        //id: BIGINT,
        username: STRING(50),
        name: STRING(30),
        phone: STRING(20),
        email: STRING(50),
        role: STRING(20),
        is_active_phone: BOOLEAN,
        is_active_email: BOOLEAN,
    },{
        table: 'users'
    });
};